﻿using System.ComponentModel.Composition;

namespace OperationPlugins.Handlers
{
    /// <summary>
    /// The MEF interface for plugin handlers.
    /// </summary>
    [InheritedExport]
    public interface IHandler
    {
        /// <summary>
        /// Handles an object.
        /// </summary>
        /// <param name="value">The object to be handled.</param>
        /// <param name="context">The operation context.</param>
        void Handle(object value, OperationContext context);
    }
}
